package com.axonactive.yolo.dtotemp;

import java.util.ArrayList;
import java.util.List;

import com.axonactive.yolo.dtotemp.FlightClass;

public class Schedule {
	String[] airports;
	String[] airportsExpanded;
	List<FlightClass> flightClasses;
	private int numStops;
	private String localDepartureTimeStr;
	private String localArrivalTimeStr;
	private int durationInMin;
	private String[] flightNumbers;
	private Long departureTime;
	private Long arrivalTime;

	public String[] getFlightNumbers() {
		return flightNumbers;
	}

	public void setFlightNumbers(String[] str_array) {
		flightNumbers = new String[str_array.length];
		for (int i = 0; i < str_array.length; i++) {
			flightNumbers[i] = str_array[i];
		}
	}

	public String[] getAirports() {
		return airports;
	}

	public List<FlightClass> getFlightClasses() {
		return flightClasses;
	}

	public int getNumStops() {
		return numStops;
	}

	public String getLocalDepartureTimeStr() {
		return localDepartureTimeStr;
	}

	public String getLocalArrivalTimeStr() {
		return localArrivalTimeStr;
	}

	public int getDurationInMin() {
		return durationInMin;
	}

	public void setAirports(String[] str_array) {
		airports = new String[str_array.length];
		for (int i = 0; i < str_array.length; i++) {
			airports[i] = str_array[i];
		}
	}

	public void setFlightClasses(List<FlightClass> flightClasses) {
		// TODO Auto-generated method stub
		this.flightClasses = new ArrayList<FlightClass>();
		for (int i = 0; i < flightClasses.size(); i++) {
			this.flightClasses.add(i, flightClasses.get(i));
		}
	}

	public void setNumStops(int number) {
		this.numStops = number;

	}

	public void setLocalArrivalTimeStr(String string) {
		// TODO Auto-generated method stub
		this.localArrivalTimeStr = string;

	}

	public void setLocalDepartureTimeStr(String string) {
		// TODO Auto-generated method stub
		this.localDepartureTimeStr = string;
	}

	public void setDurationInMin(int number) {
		this.durationInMin = number;
	}

	public String[] getAirportsExpanded() {
		return airportsExpanded;
	}

	public void setAirportsExpanded(String[] str_array) {
		this.airportsExpanded = new String[str_array.length]; 
		for (int i = 0; i < str_array.length; i++) {
			airportsExpanded[i] = str_array[i];
		}
	}

	public Long getDepartureTime() {
		return departureTime;
	}

	public void setDepartureTime(Long departureTime) {
		this.departureTime = departureTime;
	}

	public Long getArrivalTime() {
		return arrivalTime;
	}

	public void setArrivalTime(Long arrivalTime) {
		this.arrivalTime = arrivalTime;
	}


}
